#ifndef ANIMATION_H
#define ANIMATION_H

#include <QObject>

class Animation : public QObject
{
	Q_OBJECT
	
	public:
		Animation(int joint, float start, float stop, int priority);
// 		~Animation();
		void start();	//rewind to start
		void end();	//forward to end
		void setValue(float value);
		void tick(float increment);	//update
		
		bool atEnd();
		
		float currentValue();
		float startValue();
		float stopValue();
		int jointNumber();
		int priority();
		
	signals:
		void ticked(float);
		
	private:
		float currentVal;
		float startVal;
		float stopVal;
		int priorityVal;
		int jointVal;

};

#endif
